{template 'admin','header'}
<form action="{$self_url}?action={$action}" method="post" name="myform" onsubmit="r_submit(this);">
    {if $action=='edit'}
    <input type="hidden" name="id" value="{$data['id']}">
    {/if}
    <input type="hidden" name="forward" value="{HTTP_REFERER}">
    <table cellpadding="0" cellspacing="1" class="table_form">
        <caption>{if $action=='edit'}修改{else}添加{/if}关键字</caption>
        <tr>
            <th width="200"><strong>关键字</strong></th>
            <td><input type="text" name="data[word]" id="word" size="30" value="{$data['word']}"> <font color="red">*</font></td>
        </tr>
        <tr>
            <th><strong>替换为</strong></th>
            <td><input type="text" name="data[replace]" id="replace" size="30" value="{$data['replace']}"></td>
        </tr>
        <tr>
            <th></th>
            <td>
                <input type="submit" name="submitform" value=" 确定 ">
                &nbsp; <input type="button" name="return" value=" 返回 " onclick="window.location='{HTTP_REFERER}'">
            </td>
        </tr>

    </table>
</form>
{template 'admin','footer'}